Construction of automatic vending machine using DFA